package javbot.gui;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;

import javbot.Constants;

public class AboutPanel extends JPanel {

	private static final long serialVersionUID = 5634228468286656083L;
	private JLabel jLabel1 = null;
	private JLabel jLabel2 = null;
	private JLabel jLabel3 = null;
	private JLabel jLabel = null;
	private JTextPane jTextPane = null;  //  @jve:decl-index=0:visual-constraint="7,168"
	/**
	 * This is the default constructor
	 */
	public AboutPanel() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		jLabel = new JLabel();
		jLabel.setBounds(new java.awt.Rectangle(34,32,74,72));
		jLabel.setIcon(new ImageIcon(getClass().getResource(Constants.JAVBOT_IMAGE)));
		jLabel3 = new JLabel();
		jLabel3.setBounds(new java.awt.Rectangle(149,55,108,16));
		jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		jLabel3.setText("The Java Robot");
		jLabel2 = new JLabel();
		jLabel2.setText(Constants.JAVBOT_VERSION);
		jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		jLabel2.setBounds(new java.awt.Rectangle(149,90,107,17));
		jLabel1 = new JLabel();
		jLabel1.setText("JAVBOT");
		jLabel1.setForeground(java.awt.Color.black);
		jLabel1.setBounds(new java.awt.Rectangle(144,13,120,37));
		jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		jLabel1.setFont(new java.awt.Font("Arial Black", java.awt.Font.PLAIN, 24));
		this.setLayout(null);
//		this.setSize(285, 272);
		this.setBackground(new java.awt.Color(102,153,255));
		this.add(jLabel2, null);
		this.add(jLabel1, null);
		this.add(jLabel3, null);
		this.add(getJTextPane(), null);
		this.add(jLabel, null);
	}

	/**
	 * This method initializes jTextPane	
	 * 	
	 * @return javax.swing.JTextPane	
	 */
	private JTextPane getJTextPane() {
		if (jTextPane == null) {
			jTextPane = new JTextPane();
			jTextPane.setBounds(new java.awt.Rectangle(3,142,279,227));
			jTextPane.setBackground(new java.awt.Color(102,153,255));
			jTextPane.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
			jTextPane.setEditable(false);
			jTextPane.setContentType("text/html");
			jTextPane.setText(Constants.JAVBOT_ABOUT);
			
		}
		return jTextPane;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
